<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8""%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"">
<title>用户登录</title>
</head>
<body>
	<%
		Object name = session.getAttribute("name");
		Object password = session.getAttribute("password");
	%>
	<h1 align="center" style="color: blue">请登录</h1>
	<form action="Servlet2" method="get">
		用户名：<input type="text" name="name"
			value="<%=name == null ? "" : name.toString()%>"><br /> 
		密码: <input type="password" name="password"
			value="<%=password == null ? "" : password.toString()%>"><br />
		<input type="submit" ><input type="reset" value="重置">	
	</form>

</body>
</html>